//
//  userController.m
//  uivc
//
//  Created by 包子 on 12-8-10.
//  Copyright 2012 __MyCompanyName__. All rights reserved.
//

#import "UserOrder.h"
#import "Comm.h"
#import "UserLogin.h"
#import "UserPasswordUpdate.h"

@implementation UserOrder


#pragma mark -
#pragma mark Initialization

/*
 - (id)initWithStyle:(UITableViewStyle)style {
 // Override initWithStyle: if you create the controller programmatically and want to perform customization that is not appropriate for viewDidLoad.
 self = [super initWithStyle:style];
 if (self) {
 // Custom initialization.
 }
 return self;
 }
 */

#pragma mark -
#pragma mark View lifecycle


- (void)viewDidLoad {
    [super viewDidLoad];
	
	comm = [Comm instance];
	
	self.navigationItem.title = @"我的订单";	
}


/*
 - (void)viewWillAppear:(BOOL)animated {
 [super viewWillAppear:animated];
 }
 */

- (void)viewDidAppear:(BOOL)animated {
	[super viewDidAppear:animated];
	
	
}

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
	
	UserPasswordUpdate *viewController = [[UserPasswordUpdate alloc] init];
	[self.navigationController pushViewController:viewController animated:YES];
	
	[viewController release];
}

#pragma mark -
#pragma mark Table view data source

- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
    return 2;
}


- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
	return 5;
}


// Customize the appearance of table view cells.
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
	static NSString *CellIdentifier = @"Cell";
	UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
	
	int row = indexPath.row;
			cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleValue2 reuseIdentifier:CellIdentifier] autorelease];
		
			cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
		cell.imageView.image = [UIImage imageNamed:@"detail.png"];
        cell.textLabel.text = @"密码修改";
		
		return cell;

}


#pragma mark -
#pragma mark Table view delegate

- (void)viewWillAppear:(BOOL)animated{
	
}

#pragma mark -
#pragma mark Memory management

- (void)didReceiveMemoryWarning {
	// Releases the view if it doesn't have a superview.
	[super didReceiveMemoryWarning];
	

}

- (void)viewDidUnload {


}


- (void)dealloc {
	[comm release];
	[super dealloc];
}


@end

